package cn.cnpc.springmvc4.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.cnpc.springmvc4.domain.DemoObj;

@Controller
public  class AdviceController {

	
	
	@RequestMapping("/advice")
	public String getSomeThing(@ModelAttribute("msg") String msg,DemoObj obj){
		throw new IllegalArgumentException("非常抱歉，参数有误/" + "来自@ModelAttribute："+ msg);
		
		
	}
}
